
public abstract class CaffeineBeverage {
	/*Metoda template*/
	final void prepareRecipe(){
		boilWater();
		brew();
		pourInCup();
		addCondiments();
	}
	
	/*Alg de preparare a bauturii*/
	 abstract void brew();
	 
	 /*Alg de adaugare a condimentelor*/
	 abstract void addCondiments();
	 
	 /*Alg comun de fierbere a apei*/
	 void boilWater(){
		 System.out.println("Boiling water");
	 }
	 /*Alg comun de turnare in pahar*/
	 void pourInCup(){
		 System.out.println("Pouring into cup");
	 }

}
